package by.home;

public class Element {
    private String data;
    private Element nextElement;
    private Element predElement;

    public Element(String data) {
        this.data = data;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Element getNextElement() {
        return nextElement;
    }

    public void setNextElement(Element nextElement) {
        this.nextElement = nextElement;
    }

    public Element getPredElement() {
        return predElement;
    }

    public void setPredElement(Element predElement) {
        this.predElement = predElement;
    }
}
